﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WSS.hameduconn.Business.Api;
using WSS.hameduconn.Business.Dto;

namespace WSS.hameduconn.Business
{
    public class RegistrantionBusines
    {
        public static List<RegistrationsDto> GetRegistrationList()
        {
            return RegistrationsApi.GetRegistrationList();
        }
        public static RegistrationsDto Inserted(RegistrationsDto registration)
        {
            return RegistrationsApi.Inserted(registration);
        }

        public static void Updated(RegistrationsDto registration)
        {
            RegistrationsApi.Updated(registration);
        }

        public static void Deleted(RegistrationsDto registration)
        {
            RegistrationsApi.Deleted(registration);
        }

        public static RegistrationsDto GetRegistrationById(int id)
        {
            return RegistrationsApi.GetRegistrationById(id);
        }
    }
}
